package com.yzy.fly;

import com.yzy.fly.annotation.EnableFly;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

@Slf4j
//@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
//@ComponentScan(basePackages = {"com.yzy.fly.**"})
@SpringBootApplication(scanBasePackages = {"com.yzy.fly.**", "com.yzy.fly.handler.*",}, exclude = DataSourceAutoConfiguration.class)
//@EnableScheduling // 开启定时任务功能
//@EnableTransactionManagement
@EnableFly(scannerPaths = "com.yzy.fly")
public class FlyApplication {

    public static void main(String[] args) throws Exception {
        SpringApplication.run(FlyApplication.class, args);
    }

}
